package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author chen huilong
 * @since 2022-10-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "BuildingInfo对象", description = "")
public class BuildingInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "宿舍楼id")
    @TableId(value = "building_id", type = IdType.ID_WORKER)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long buildingId;

    @ApiModelProperty(value = "宿舍楼名称（如5号楼）")
    private String buildingName;

    @ApiModelProperty(value = "入住学生性别（0男1女2混合）")
    private String gender;

    @ApiModelProperty(value = "男生宿舍总数")
    private Integer roomCountMan;

    @ApiModelProperty(value = "男生床位总数")
    private Integer bedCountMan;

    @ApiModelProperty(value = "剩余男生床位")
    private Integer bedRemainderMan;

    @ApiModelProperty(value = "女生宿舍总数")
    private Integer roomCountWoman;

    @ApiModelProperty(value = "女生床位总数")
    private Integer bedCountWoman;

    @ApiModelProperty(value = "剩余女生床位")
    private Integer bedRemainderWoman;
}
